import json
from config import path

def read_json_data(path):
    with open(path,'r',encoding='utf-8') as fp:
        data_list = []
        for i in json.load(fp):
            data_list.append(tuple(list(i.values())[1:]))
    return data_list
def read_schema_data(path):
    with open(path,'r',encoding='utf-8') as fp:
        data_list = []
        for i in json.load(fp):
            data_list.append(i)
    return data_list

if __name__ == '__main__':
    path = path+"/data/ihrm_add_emp.json"
    print(read_schema_data(path))
    # data = read_json_data(path)[0]
    # data = data[0]
    # print(data["id_emp"])